package com.freework.report.base.service.filterCondition;


public class FilterConditionItemSQLDefault implements FilterConditionItemSQL {
    public String getSQL(Condition filer,String byTableName,Object value){
    	StringBuilder sql=new StringBuilder(16);
    	if(byTableName!=null&&!byTableName.equals("")){
    		sql.append(" ").append(byTableName).append(".");
    	}
    		sql.append(" ").append(filer.getColname()).append(" ").append(filer.getSymbol());
    		sql.append("?").append(" ");
    	return sql.toString();
    }

	public boolean isPrepare() {
		return true;
	}
}
